

import 'package:json_annotation/json_annotation.dart';
part 'services_data.g.dart';

@JsonSerializable()
class ServicesBean {

  final num? serviceId;
  final String? serviceName;
  final num? price;
  final String? description;
  final String? detail;
  final String? unit;

  ServicesBean(this.serviceId, this.serviceName, this.price, this.description, this.detail, this.unit);
  factory ServicesBean.fromJson(Map<String, dynamic> json) => _$ServicesBeanFromJson(json);
  Map<String, dynamic> toJson() => _$ServicesBeanToJson(this);
}




@JsonSerializable()
class WxPayBean {

  final String? appid;
  final String? partnerId;
  final String? prepayId;
  final String? nonceStr;
  final String? timestamp;
  final String? orderId;
  final String? paySign;
  WxPayBean(this.appid, this.partnerId, this.prepayId, this.nonceStr, this.timestamp, this.orderId, this.paySign);
  factory WxPayBean.fromJson(Map<String, dynamic> json) => _$WxPayBeanFromJson(json);
  Map<String, dynamic> toJson() => _$WxPayBeanToJson(this);

}




@JsonSerializable()
class OrderData {
    final List<OrderBean>? content;
    final int? totalPages;
    final bool? last;
    final int? size;
    final int? number;

    OrderData(this.content, this.totalPages, this.last, this.size, this.number );
    factory OrderData.fromJson(Map<String, dynamic> json) => _$OrderDataFromJson(json);
    Map<String, dynamic> toJson() => _$OrderDataToJson(this);
}


@JsonSerializable()
class OrderBean {
  @JsonKey(fromJson: _numToString)
  final String? id;
  @JsonKey(fromJson: _numToString)
  final String? gmtCreate;
  @JsonKey(fromJson: _numToString)
  final String? gmtModified;
  final String? orderNo;
  @JsonKey(fromJson: _numToString)
  final String? userId;
  @JsonKey(fromJson: _numToString)
  final String? companyId;
  final String? companyName;
  @JsonKey(fromJson: _numToString)
  final String? serviceId;
  final String? serviceName;
  final num? amount;
  final num? orderStatus;
  final String? transactionId;
  @JsonKey(fromJson: _numToString)
  final String? paymentTime;
  @JsonKey(fromJson: _numToString)
  final String? cancelTime;
  final String? paymentTimeStr;
  final String? tradeType;
  final String? payerOpenid;
  @JsonKey(fromJson: _numToString)
  final String? reportStatus;
  final String? reportUrl;
  final String? resultMsg;
  OrderBean(this.id, this.gmtCreate, this.gmtModified, this.orderNo, this.userId, this.companyId, this.companyName, this.serviceId, this.serviceName, this.amount, this.orderStatus, this.transactionId, this.paymentTime, this.cancelTime, this.paymentTimeStr, this.tradeType, this.payerOpenid, this.reportStatus, this.reportUrl, this.resultMsg);
  factory OrderBean.fromJson(Map<String, dynamic> json) => _$OrderBeanFromJson(json);
  Map<String, dynamic> toJson() => _$OrderBeanToJson(this);

  static String? _numToString(num? value) => value?.toString();
}